package com.right.dao;



import java.sql.Connection;
import java.util.List;

import com.Tools.PageData;
import com.right.entity.Users;

public interface UsersDao {
	public boolean addusers(Users users);
	
	public boolean delusers(int userid);
	
	public boolean login (String username,String userpwd);
	
	public boolean updateusers(Users users);
	
	public Users getUserByName(String username);
	
	public Users getUserByid(int userid);
	
	public PageData<Users> getUserByPage(int page,int pageSize,String keywords);
	
	public Users getIdByName(String username);
	
	public int changemoney(Connection conn,double money,int userid);
}
